<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

class Event_Form_Admin_Search extends Engine_Form{
   
   public function init() {
     
       $this
            ->clearDecorators()
            ->addDecorator('FormElements')
            ->addDecorator('Form')
            ->addDecorator('HtmlTag', array('tag' => 'div', 'class' => 'search'))
            ->addDecorator('HtmlTag2', array('tag' => 'div', 'class' => 'clear'))
     		->setAttribs(array(
                'id' => 'filter_form',
                'class' => 'global_form f1',
     		'method'=>'POST',
            //'onSubmit' => "getdate()",
            ));
   
      $this->addElement('Text','title', array(
          'label'=> 'Title',
      ));

      $this->addElement('Text','owner', array(
          'label'=> "Owner",
      ));
      
      $this->addElement('hidden','form_search', array(
        'value' => 'form_search',
      ));
      $this->addElement('select', 'order', array(
          'label' => 'Order',
          
          'multiOptions' => array(
              '1' => 'Recent',
              '2' => 'Popular',
          ),
      ));
      $this->addElement('Button', 'submit', array(
          'label' => 'Search',
          'type' => 'submit',
          'ignore' => true,
              //'onclick' =>'validate()',
              // 'decorators' => array('ViewHelper')
      ));
   }

    
  
}
?>
